﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace BudgetKeeper
{
    public partial class AddBudgetForm : Form
    {
        public double Income { get; set; }
        public bool Completed { get; set; }

        public AddBudgetForm()
        {
            InitializeComponent();
        }

        private void buttonOk_Click(object sender, EventArgs e)
        {
            Income = Convert.ToDouble(textBoxIncome.Text);
            Completed = true;
            this.Close();
        }

        private void buttonCancel_Click(object sender, EventArgs e)
        {
            Completed = false;
            this.Close();
        }
    }
}
